// 当前页面视口尺寸
import {ref} from "vue";

const vw = ref(document.documentElement.clientWidth)
const vh = ref(document.documentElement.clientHeight)
window.addEventListener('resize',()=>{
    vw.value = document.documentElement.clientWidth
    vh.value = document.documentElement.clientHeight
})
export function useViewport(){
    return{
        vw,
        vh
    }
}
